package com.kede.api.order.service;

import com.kede.api.order.pojo.ZhiMoneyOrderPO;
import com.kede.domain.UsersDomain;
import com.kede.pojo.ResHttp;

import java.math.BigDecimal;

/***
 ** @Author:Pr.li
 ** @Description:
 ** @Date: create in 2023/6/12 10:27
 ***/
public interface IZhiOrderService {


    /**
     * 获取置换订单某个一件物品的详细信息
     * @param ZhiGoodId
     * @return
     */
    ResHttp getZhiGoodDetailInfoById(Integer ZhiGoodId);

    ResHttp addZhiMoneyOrder(ZhiMoneyOrderPO zhiMoneyOrderPO);

    ResHttp addZhiOrder(ZhiMoneyOrderPO zhiMoneyOrderPO);
    /**
     * 根据置换的物品id 确认置换后给用户发现金
     * @param goodId
     * @return
     */
    ResHttp storeConfirm(Integer goodId);


    /**
     * 删除置换订单
     * @param orderSn
     * @return
     */
    ResHttp delZhiOrder(String orderSn);

    /**
     * 门店积分确认置换
     * @param goodId
     * @return
     */
    ResHttp confirmZhiOrder(Integer goodId);


    /**
     * 添加积分给用户 并添加 记录
     * @param user
     * @param score
     * @return
     */
    boolean AddDebiAndRecord(UsersDomain user, BigDecimal score,BigDecimal money);

}
